﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace Repositories.Interfaces
{
    public interface IUserLoginRepository : IBaseRepository<UserLogin>
	{
        
        /// <summary>
        /// Finds the by ID.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns>The UserLogin with input ID.</returns>
        UserLogin FindById(int id);

        bool FindByUserName(string userName, string password);

        /// <summary>
        /// Edits the UserLogin.
        /// </summary>
        /// <param name="item">The item.</param>
        void EditUserLogin(UserLogin item);

        /// <summary>
        /// Applies the changes to database.
        /// </summary>
        void ApplyTheChanges();

        /// <summary>
        /// Accepts all changes.
        /// </summary>
        void AcceptAllChanges();

        /// <summary>
        /// Refreshes this instance.
        /// </summary>
        void Refresh();
	}
}
